import * as actionTypes from '../constants'
const initState=false;//是否登录

export default function loginReducer(preState=initState,action){
    switch(action.type){
        case actionTypes.SET_LOGGIN:
            return action.data

        default:
            return preState
    }
}